package com.zmht.specedu.vo;

import java.util.HashSet;
import java.util.Set;

/**
 * Module entity. @author MyEclipse Persistence Tools
 */

public class Module implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer parentid;
	private Integer groupid;
	private String name;
	private String registorcode;
	private String url;
	private Integer role;
	private Integer index;
	private Short active;
	private Set<Module> modules = new HashSet<Module>(0);

	// Constructors

	/** default constructor */
	public Module() {
	}

	/** minimal constructor */
	public Module(String name) {
		this.name = name;
	}

	/** full constructor */
	public Module(Integer parentid, Integer groupid, String name,
			String registorcode, String url, Integer role, Set modules) {
		this.parentid = parentid;
		this.groupid = groupid;
		this.name = name;
		this.registorcode = registorcode;
		this.url = url;
		this.role = role;
		this.modules = modules;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	

	public Integer getParentid() {
		return parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

	public Integer getGroupid() {
		return groupid;
	}

	public void setGroupid(Integer groupid) {
		this.groupid = groupid;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRegistorcode() {
		return this.registorcode;
	}

	public void setRegistorcode(String registorcode) {
		this.registorcode = registorcode;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getRole() {
		return this.role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	public Set<Module> getModules() {
		return this.modules;
	}

	public void setModules(Set<Module> modules) {
		this.modules = modules;
	}

	public Integer getIndex() {
	    return index;
	}

	public void setIndex(Integer index) {
	    this.index = index;
	}

	public Short getActive() {
	    return active;
	}

	public void setActive(Short active) {
	    this.active = active;
	}
	
}